package com.asu.dltalk.test;

import java.util.ArrayList;

import com.asu.dltalk.model.GroupEntity;
import com.asu.dltalk.model.UserEntity;

public class DataFactory {
	public static Object createTreeData(){
		UserEntity p1 = new UserEntity("Xin Du");
		UserEntity p2 = new UserEntity("Yu Liu");
		UserEntity p3 = new UserEntity("Tom");
		GroupEntity g1 = new GroupEntity("Neo sapien");
		GroupEntity g2 = new GroupEntity("homo sapien");
		
		ArrayList list = new ArrayList();
		list.add(p1);
		list.add(p2);
		g1.setChildren(list);
		list = new ArrayList();
		list.add(p3);
		g2.setChildren(list);
		
		list = new ArrayList();
		list.add(g1);
		list.add(g2);
		return list;
	}
}
